<template>
  <div class="dashboard-container">
    <el-card>
      <template #header>
        <div class="card-header">
          <h3>{{ $t('dashboard.title') }}</h3>
        </div>
      </template>
      <div class="dashboard-content">
        <el-row :gutter="20">
          <el-col :span="8">
            <el-card shadow="hover">
              <el-statistic :value="112893" title="访问量" />
            </el-card>
          </el-col>
          <el-col :span="8">
            <el-card shadow="hover">
              <el-statistic :value="81212" title="用户数" />
            </el-card>
          </el-col>
          <el-col :span="8">
            <el-card shadow="hover">
              <el-statistic :value="9280" title="订单量" />
            </el-card>
          </el-col>
        </el-row>
        <div class="welcome-message">
          <h2>{{ $t('dashboard.welcome') }}</h2>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script setup>
// 仪表板页面逻辑
</script>

<style scoped>
.dashboard-container {
  padding: 20px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dashboard-content {
  margin-top: 20px;
}
.welcome-message {
  margin-top: 40px;
  text-align: center;
}
</style>